package com.tongweb.catalina.startup;

import com.oneapm.si.nodeservice.MaskFactory;
import com.oneapm.si.nodeservice.service.ServiceProxy;
import com.oneapm.si.nodeservice.service.node.INodeService;

import javax.naming.Context;
import javax.naming.Name;
import java.util.Hashtable;

public class MaskFactoryChild extends MaskFactory {

    @Override
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        Class.forName(ServiceProxy.class.getName());
        Class.forName(INodeService.class.getName());
        System.out.println("========== successfully load ServiceProxy class");
        return name;
    }


}
